﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Map.aspx.cs" Inherits="VK.Casemeet.Web.Map" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>地图</title>
    <script type="text/javascript" src="http://ditu.google.cn/maps/api/js?v=3.7&sensor=false&language=cn"></script> 
</head>
<body style="border:0px #949694 solid;margin:0px;padding:0px">
    <form id="form1" runat="server">
    <div id="map_canvas" style="width:<% =width %>px;height:<% =height %>px"></div>
    <script type="text/javascript">
        function initialize() {
            // Creating a map  
            var map = new google.maps.Map(document.getElementById('map_canvas'), {
                zoom: <% =zoom %>,
                center: new google.maps.LatLng(<% =map %>),
                mapTypeId: google.maps.MapTypeId.ROADMAP,
                mapTypeControl     : <% = type==1 ? "true":"false" %>,
                streetViewControl  : false
            });

            var marker = new google.maps.Marker({
                position: new google.maps.LatLng(<% =map %>),
                map: map,
                title: '',
                clickable: false,
                icon: 'http://www.tiangs.com/Front/Themes/Images/google_map_home.png' 
            });
        }
        initialize();
    </script>
    </form>
</body>
</html>
